package com.example.springboot.controller;

import com.example.springboot.entity.Course_sort;
import com.example.springboot.mapper.Course_sortMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class Course_sortController {
    @Autowired
    private Course_sortMapper mapper;

    @GetMapping("/course_sort")
    public List<Course_sort> index(){
        return mapper.findAll();
    }

}
